package com.example;

import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;

import java.util.List;

/**
 * Created by Administrator on 2018/5/16.dfdsf
 */

public class TeacherAdapter extends ArrayAdapter<Teacher> {

    public TeacherAdapter(@NonNull Context context, int resource, @NonNull List<Teacher> objects) {
        super(context, resource, objects);
    }
//    public View getView(int position, View convertView, ViewGroup parent){
//        //获取老师的数据
//        Teacher teacher=getItem(position);
//        View oneTeacherView = LayoutInflater.from(getContext()).inflate(R.layout.teacher_item, parent, false);
//        //获取 fdsf
//        ImageView imageView = (ImageView) oneTeacherView.findViewById(R.id.teacher_small_imageView);
//        TextView textView = (TextView) oneTeacherView.findViewById(R.id.teacher_name_textView);
//    }
}
